package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 视频服务调用
 */
@FeignClient(value = "service-vod",fallback = VodClientImpl.class)
@Component("vodClient")
public interface VodClient {
    //根据视频id删除
    @DeleteMapping("/eduvod/vod/{id}")
    R removeById(@PathVariable("id") String id);

    //批量根据视频id删除
   @DeleteMapping("/eduvod/vod/removeVideiList")
    public R removeVideiList(@RequestParam("videoIds") List<String> videoIds);
}
